﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace DuplexMsmqShared
{
	public class Conversation : IConversation
	{
		#region IConversation Members

		public void Say(string something)
		{
			Console.WriteLine("Someone says \"{0}\" to you, what is your response ?", something);
			String response = Console.ReadLine();
			OperationContext.Current.GetCallbackChannel<IConversation>().Say(response);
		}

		#endregion
	}
}
